<?php
	
	class Fx_Path
	{
		
		protected static $_instance = null;
		
		protected static $_defaultTheme = 'default';
		
		public function getBaseUrl()
		{
			// Load helper url first
			return base_url();	
		}
		
		public function getInstance()
		{
			if (self::$_instance === null)	
			{
				self::$_instance = new self;	
			}
			return self::$_instance;
		}
		
		public static function getMediaPath()
		{
			return APP_MEDIA_PATH;
		}
		
		public static function getSkinPath()
		{
			return APP_SKIN_PATH;
		}
		
		public static function getThemePath()
		{
			return APP_THEME_PATH;
		}
		
		public static function getTemplatePath()
		{
			return  APP_THEME_PATH . self::$_defaultTheme . SP . APP_TEMPLATE_FOLDER . SP;
		}
		
		public static function getLayoutPath()
		{
			return APP_THEME_PATH . self::$_defaultTheme . SP . APP_LAYOUT_FOLDER . SP;
		}
		
		public static function getJsPath()
		{
			return APP_JS_PATH;
		}
		
		public static function getImagePath()
		{
			return APP_SKIN_PATH . self::$_defaultTheme . SP . APP_IMAGE_FOLDER . SP;
		}
		
		public static function getCssPath()
		{
			return APP_SKIN_PATH . self::$_defaultTheme . SP . APP_CSS_FOLDER . SP;
		}
		
		public static function getCurrentTheme()
		{
			return self::$_defaultTheme;
		}
		
	}
?>